package com.example.demo.threadPool;

public class Consumer implements Runnable {
    private Vo vo;
    public Consumer(Vo vo){
        this.vo = vo;
    }
    @Override
    public void run() {
        for(int i=0; i<10; i++){
            try {
                Thread.sleep(50);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(vo.getName() + "--------就是--------" + vo.getRole());
        }
    }
}
